package com.tz.service;

import com.tz.dao.FaqDao;
import com.tz.entity.Faq;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2016/8/5.
 */
@Service
@Transactional
public class FaqServiceImpl implements FaqService {
    @Autowired
    private FaqDao faqDao;
    @Override
    public List<Faq> getAll() {
        return faqDao.getAll();
    }

    @Override
    public void save(Faq f) {
        faqDao.save(f);
    }
}
